Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint upstream as a normal unit test #4918

Merged
merged 10 commits into from
Dec 16, 2024
Merged

Lint upstream as a normal unit test #4918

merged 10 commits into from
Dec 16, 2024

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Dec 12, 2024

This removes the last job in extraTests by making it a standard unit test.

Currently the job runs without caching and takes upwards of 30-40 minutes because it re-compiles everything from scratch. This makes it the long poll when sharding is turned on.

By running with the rest of our tests it can benefit from caching. Locally the test takes only ~20s.

This is run during unit tests, which still take about ~5 minutes before and after this change. They're actually slightly faster because I parallelized some of them while I was in here.

@blampe blampe force-pushed the blampe/upstream-lint branch from 7cd6c4d to c2e930a Compare December 13, 2024 02:11
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 24.41%. Comparing base (6d1326d) to head (24e6dfb).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4918   +/-   ##
=======================================
  Coverage   24.41%   24.41%           
=======================================
  Files         360      360           
  Lines      143270   143270           
=======================================
  Hits        34984    34984           
  Misses     108187   108187           
  Partials       99       99           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -493,9 +494,13 @@ var namespaceMap = map[string]string{
"aws": "Aws",
}

var _nslock = sync.Mutex{}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious what happened here, we ran awsMember call from multiple goroutines?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's probably because of all the t.Parallel introduced into the tests? Interesting.

@blampe
Copy link
Contributor Author

blampe commented Dec 16, 2024

Assuming the upstream waf tests are unrelated.

@blampe blampe merged commit df65048 into master Dec 16, 2024
25 of 26 checks passed
@blampe blampe deleted the blampe/upstream-lint branch December 16, 2024 20:22
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v6.66.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants